import { forwardRef, Module } from '@nestjs/common';
import { MoneyService } from './money.service';
import { MoneyController } from './money.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Money } from './entities/money.entity';
import { UserModule } from '../../admin/user/user.module';

@Module({
  imports: [TypeOrmModule.forFeature([Money]), forwardRef(() => UserModule)],
  controllers: [MoneyController],
  providers: [MoneyService],
  exports: [MoneyService, TypeOrmModule],
})
export class MoneyModule {}
